"""
下面程序的功能是：将字符串'1a2b3c56ghjik'中的数字和字母分开并输出，然后将所有字母组合程字符串，转换成大写后输出，请将正确答案写在横线处
s = '1a2b3c56ghjik''
for c in s:
    if __________:
        print(c,end=' ')
print()
s1 = ''
for c in s:
    if_______:
        s1 += c
        print(c,end=' ')
print('\n',__________)
"""
s = '1a2b3c56ghjik'
for c in s:
    if c >= '0' and c <= '9':
        print(c,end=' ')
print()
s1 = ''
for c in s:
    if c >= 'a' and c <= 'z':
        s1 += c
        print(c,end=' ')
print('\n',s1.upper())